package com.rk.hosp.repository;

import com.rk.hosp.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author :Rk.
 * @date : 2022/11/9
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    /**
     * 通过医院编码获取医院信息
     * @param hoscode
     * @return
     */
    Hospital getHospitalByHoscode(String hoscode);

    //根据医院名称查询
    List<Hospital> findHospitalByHosnameLike(String hosname);

}